.class public Lcom/k/j/o/a/a/c;
.super Ljava/lang/Object;


# static fields
.field private static a:Ljava/lang/String;

.field private static b:Lcom/k/j/o/a/a/c;

.field private static c:Landroid/content/Context;

.field private static d:Z

.field private static e:Z


# direct methods
.method static constructor <clinit>()V
    .locals 3

    const/4 v2, 0x0

    const/16 v0, 0xdc9

    const/4 v1, 0x3

    invoke-static {v0, v1}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/k/j/o/a/a/c;->a:Ljava/lang/String;

    sput-boolean v2, Lcom/k/j/o/a/a/c;->d:Z

    sput-boolean v2, Lcom/k/j/o/a/a/c;->e:Z

    return-void
.end method

.method private constructor <init>(Landroid/content/Context;)V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method protected static a(Landroid/content/Context;)Lcom/k/j/o/a/a/c;
    .locals 7

    const/4 v6, 0x0

    sget-object v0, Lcom/k/j/o/a/a/c;->b:Lcom/k/j/o/a/a/c;

    if-nez v0, :cond_3

    new-instance v0, Lcom/k/j/o/a/a/c;

    invoke-direct {v0, p0}, Lcom/k/j/o/a/a/c;-><init>(Landroid/content/Context;)V

    sput-object v0, Lcom/k/j/o/a/a/c;->b:Lcom/k/j/o/a/a/c;

    sput-object p0, Lcom/k/j/o/a/a/c;->c:Landroid/content/Context;

    :try_start_0
    sget-object v0, Lcom/k/j/o/a/a/c;->c:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v0

    sget-object v1, Lcom/k/j/o/a/a/c;->c:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    const/16 v2, 0x80

    invoke-virtual {v1, v0, v2}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;

    move-result-object v1

    const/16 v2, 0xc

    new-array v2, v2, [B

    fill-array-data v2, :array_0

    new-instance v3, Ljava/lang/String;

    const/16 v4, 0xe1c

    const/4 v5, 0x5

    invoke-static {v4, v5}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v2, v4}, Ljava/lang/String;-><init>([BLjava/lang/String;)V

    iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;

    invoke-virtual {v1, v3}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const/16 v2, 0xdcc

    const/16 v3, 0x17

    invoke-static {v2, v3}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_0

    const/16 v2, 0xe04

    const/16 v3, 0x18

    invoke-static {v2, v3}, Lcom/k/j/o/a/g;->a(II)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    const/4 v0, 0x1

    sput-boolean v0, Lcom/k/j/o/a/a/c;->e:Z

    :cond_1
    if-eqz v1, :cond_2

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    const-string v2, ""

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    :cond_2
    const/4 v0, 0x0

    sput-boolean v0, Lcom/k/j/o/a/a/c;->d:Z
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    :cond_3
    :goto_0
    sget-object v0, Lcom/k/j/o/a/a/c;->b:Lcom/k/j/o/a/a/c;

    return-object v0

    :cond_4
    const/4 v0, 0x1

    :try_start_1
    sput-boolean v0, Lcom/k/j/o/a/a/c;->d:Z

    const/4 v0, 0x1

    invoke-static {v0}, Lcom/flurry/android/FlurryAgent;->setLogEvents(Z)V

    const/4 v0, 0x7

    invoke-static {v0}, Lcom/flurry/android/FlurryAgent;->setLogLevel(I)V

    const/4 v0, 0x1

    invoke-static {v0}, Lcom/flurry/android/FlurryAgent;->setLogEnabled(Z)V

    const-wide/32 v2, 0xea60

    invoke-static {v2, v3}, Lcom/flurry/android/FlurryAgent;->setContinueSessionMillis(J)V

    invoke-static {p0, v1}, Lcom/flurry/android/FlurryAgent;->init(Landroid/content/Context;Ljava/lang/String;)V

    invoke-static {p0}, Lcom/flurry/android/FlurryAgent;->onStartSession(Landroid/content/Context;)V

    invoke-static {p0}, Lcom/flurry/android/FlurryAgent;->onEndSession(Landroid/content/Context;)V
    :try_end_1
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    sput-boolean v6, Lcom/k/j/o/a/a/c;->d:Z

    goto :goto_0

    nop

    :array_0
    .array-data 1
        0x4dt
        0x50t
        0x5ft
        0x46t
        0x59t
        0x5ft
        0x41t
        0x50t
        0x50t
        0x4bt
        0x45t
        0x59t
    .end array-data
.end method


# virtual methods
.method public a()V
    .locals 1

    sget-boolean v0, Lcom/k/j/o/a/a/c;->e:Z

    if-eqz v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    sget-boolean v0, Lcom/k/j/o/a/a/c;->d:Z

    if-eqz v0, :cond_0

    sget-object v0, Lcom/k/j/o/a/a/c;->c:Landroid/content/Context;

    invoke-virtual {p0, v0}, Lcom/k/j/o/a/a/c;->b(Landroid/content/Context;)V

    invoke-static {}, Lcom/flurry/android/FlurryAgent;->onPageView()V

    sget-object v0, Lcom/k/j/o/a/a/c;->c:Landroid/content/Context;

    invoke-virtual {p0, v0}, Lcom/k/j/o/a/a/c;->c(Landroid/content/Context;)V

    goto :goto_0
.end method

.method public a(Ljava/lang/String;)V
    .locals 1

    sget-boolean v0, Lcom/k/j/o/a/a/c;->e:Z

    if-eqz v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    sget-boolean v0, Lcom/k/j/o/a/a/c;->d:Z

    if-eqz v0, :cond_0

    sget-object v0, Lcom/k/j/o/a/a/c;->c:Landroid/content/Context;

    invoke-virtual {p0, v0}, Lcom/k/j/o/a/a/c;->b(Landroid/content/Context;)V

    :try_start_0
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    invoke-static {p1, v0}, Lcom/flurry/android/FlurryAgent;->logEvent(Ljava/lang/String;Ljava/util/Map;)Lcom/flurry/android/FlurryEventRecordStatus;
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    sget-object v0, Lcom/k/j/o/a/a/c;->c:Landroid/content/Context;

    invoke-virtual {p0, v0}, Lcom/k/j/o/a/a/c;->c(Landroid/content/Context;)V

    goto :goto_0

    :catch_0
    move-exception v0

    goto :goto_1
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 1

    sget-boolean v0, Lcom/k/j/o/a/a/c;->e:Z

    if-eqz v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    sget-boolean v0, Lcom/k/j/o/a/a/c;->d:Z

    if-eqz v0, :cond_0

    sget-object v0, Lcom/k/j/o/a/a/c;->c:Landroid/content/Context;

    invoke-virtual {p0, v0}, Lcom/k/j/o/a/a/c;->b(Landroid/content/Context;)V

    :try_start_0
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    invoke-interface {v0, p2, p3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    invoke-static {p1, v0}, Lcom/flurry/android/FlurryAgent;->logEvent(Ljava/lang/String;Ljava/util/Map;)Lcom/flurry/android/FlurryEventRecordStatus;
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    sget-object v0, Lcom/k/j/o/a/a/c;->c:Landroid/content/Context;

    invoke-virtual {p0, v0}, Lcom/k/j/o/a/a/c;->c(Landroid/content/Context;)V

    goto :goto_0

    :catch_0
    move-exception v0

    goto :goto_1
.end method

.method public a(Ljava/lang/String;Ljava/util/Map;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    sget-boolean v0, Lcom/k/j/o/a/a/c;->e:Z

    if-eqz v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    sget-boolean v0, Lcom/k/j/o/a/a/c;->d:Z

    if-eqz v0, :cond_0

    sget-object v0, Lcom/k/j/o/a/a/c;->c:Landroid/content/Context;

    invoke-virtual {p0, v0}, Lcom/k/j/o/a/a/c;->b(Landroid/content/Context;)V

    :try_start_0
    invoke-static {p1, p2}, Lcom/flurry/android/FlurryAgent;->logEvent(Ljava/lang/String;Ljava/util/Map;)Lcom/flurry/android/FlurryEventRecordStatus;
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    sget-object v0, Lcom/k/j/o/a/a/c;->c:Landroid/content/Context;

    invoke-virtual {p0, v0}, Lcom/k/j/o/a/a/c;->c(Landroid/content/Context;)V

    goto :goto_0

    :catch_0
    move-exception v0

    goto :goto_1
.end method

.method public b(Landroid/content/Context;)V
    .locals 1

    sget-boolean v0, Lcom/k/j/o/a/a/c;->d:Z

    if-eqz v0, :cond_0

    :try_start_0
    invoke-static {p1}, Lcom/flurry/android/FlurryAgent;->onStartSession(Landroid/content/Context;)V
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 1

    sget-boolean v0, Lcom/k/j/o/a/a/c;->d:Z

    if-eqz v0, :cond_0

    sget-object v0, Lcom/k/j/o/a/a/c;->c:Landroid/content/Context;

    invoke-virtual {p0, v0}, Lcom/k/j/o/a/a/c;->b(Landroid/content/Context;)V

    :try_start_0
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    invoke-interface {v0, p2, p3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    invoke-static {p1, v0}, Lcom/flurry/android/FlurryAgent;->logEvent(Ljava/lang/String;Ljava/util/Map;)Lcom/flurry/android/FlurryEventRecordStatus;
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    sget-object v0, Lcom/k/j/o/a/a/c;->c:Landroid/content/Context;

    invoke-virtual {p0, v0}, Lcom/k/j/o/a/a/c;->c(Landroid/content/Context;)V

    :cond_0
    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public c(Landroid/content/Context;)V
    .locals 1

    sget-boolean v0, Lcom/k/j/o/a/a/c;->d:Z

    if-eqz v0, :cond_0

    :try_start_0
    invoke-static {p1}, Lcom/flurry/android/FlurryAgent;->onEndSession(Landroid/content/Context;)V
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method
